<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let now =new Date()
        console.log(now)
        console.log(now.toDateString())
        console.log(now.toTimeString())//时分秒
        console.log(now.toLocaleString())//年月日  时分秒 
        console.log(now.toUTCString())//国际标准时间


        let x = Date.now//时间戳
        console.log(x)//1970年1月1日到现在的时间戳距离
    </script>
</body>
</html>